package com.sfac.javaSpringBoot.modules.test.service;

import com.github.pagehelper.PageInfo;
import com.sfac.javaSpringBoot.modules.common.entity.Result;
import com.sfac.javaSpringBoot.modules.common.entity.SearchBean;
import com.sfac.javaSpringBoot.modules.test.entity.City;
import org.apache.ibatis.annotations.Param;

/**
 * @Description CityService
 * @Author HymanHu
 * @Date 2021/9/13 14:08
 */
public interface CityService {

    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object> deleteCityByCityId(int cityId);

    City getCityByCityId(int cityId);

    City getCityByCityNameAndLocalCityName(String cityName, String localCityName);

    PageInfo<City> getCitiesBySearchBean(SearchBean searchBean);
}
